package moco.blatt8.zeitabfrageasync;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;

public class SocketUtils {
	
	public static final String HOST = "time-b.timefreq.bldrdoc.gov";
	public static final int PORT = 13;
	
	public static BufferedReader getReader(Socket s) throws IOException {
		return (new BufferedReader(new InputStreamReader(s.getInputStream())));
	}
	
	public static PrintWriter getWriter(Socket s) throws IOException {
		return (new PrintWriter(s.getOutputStream(), true));
	}
	
}
